Refactored some brute and grid functions to the volume model.