<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def strip_extras(requirement):
 """Returns a new requirement object with extras removed. """

    line = requirement.as_line()
    new = type(requirement).from_line(line)
    new.extras = None
    return new