Moved the interpolation and view composition into plugins for easier testing