Refactoring resource publishing strategy