Managing list of available codecs has been moved to a separate class to be able to unit test the controller.