OO-1342: refactor the loading mechanism for the custom media controller with a standard factory pattern