Remove useless factories