Refactoring in order to create and publish surveys on staging