Refactored the way extra data for objects are passed to partials.