Remove unneeded procedures.