Remove AutowiringEvents hacks

AutowiringEvents is no longer a dynamic library, so these hacks can be removed.