Assuming the appearance of the deceased Moira McTaggert (considered a mother figure by David due to his time under her care at Muir Island), the personality attempted to 'protect' Legion from the 'assault' on his mind by creating a pocket reality where Legion was the hero that he always wanted to be.