move reference-related templates and views to objectmap package