Extract creation of colour objects (within tests) into a utility method.