Moved the logic for alternative names away from the php generator