CORE-5161 Fix for DiskResourceQueryFormTests.

Refactored the createFileSizeUnits call in DiskResourceQueryForm into a default method that can be overridden by the tests.