Removes useless static methods