Refactor to eliminate the use of JMXService