Refactoring Color.parse