Moves some code