Generate factories controller