Refactor static files setup