Remove static initializers with undo-history