Moved JMX factory methods inside companion object.