Refactored method for getting mime type from filter