Cleaning controller and factory