Refactored Get returned_type