Moved out the optimizer plugin to a top-level module