I’m currently working on tidying up some code, I realized that the
controller had a lot of Model logic in it, so naturally I moved it out
to the corresponding models.
But there’s also a lot of AJAX calls happening in the controller as
well. Is there any recommended way to keep it tidy? i.e. best practices
and what not.