Migrates orientation logic to enumerated type.