refactoring of create-company webscript in share amp