Refactoring static files