<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def remove_reference(type_):
 """removes reference from the type definition If type is not reference type, it will be returned as is. """

    nake_type = remove_alias(type_)
    if not is_reference(nake_type):
        return type_

    return nake_type.base