color selection refactoring