Refactor to prep resource loading for jars.