More terra refactoring and exposing an applyBodies.