Moves wheel logic to wheel template