refactor model.cake into a sub package