Extracts inline function to private function for clarification