Code cleanup
Extracted repetitive code that loads resources from local file system into a util file