Remove repeated and unused ids from modals