Factor out color-identifier function
Add provide declaration