Code duplication with GameServerBeginStep