Moved allowed extensions to class-level property.