[WIP] Model cleanup

Removed unused parts of the nupattern model and associated code and templates.