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
