static resource refactor