Refactor MPD's connection, response and ACK into classes