Liver volume and blood flow prediction functions refactored