Removed remove_factor function.