Re-use integration code from grano-ui, move templates.