Extract composers to a factory