Temporary costume color fix

Moving a lot of logic out of the module, until the module loader is done