Generate models, simplify routes