I don't see a way to combine them. They need to be before and after the two lines between them. entity_pos is needed to create entity_delta, and entity is needed to set self._player_entity.