Issue #2237101 by Mile23, cordoval, YesCT, dawehner, tim.plunkett: clean up for Core/DependencyInjection CompilerPasses