Refactoring config xml so that media can be independent