Refactored DiskFactory to use static method.