Refactor color grouped collection select in lines form