Moved direction-related things back to utilities