Simplify orientation parsing using enum