Put grid rotation into grid helper functions