Nest color object imports within their respective conversion functions instead of using the nasty top-level function. Still nasty, but more explicit and readable.