Restructured the management code further by moving services related to code to the services module and keeping the sending and receiving of management messages in the API module.