Obeying Open-Closed Principle when checking file modes for blobs and its subclasses