Remove unnecessary setuphandlers.