I think blocks of LMIS specific template code should be in partials to at least help separate it.