Added class function createSlot to Factory class.