Remove unnecessary extends.