Convert MBeanProxyFactory to class (from trait).
Remove unsued imports.