refactoring server type to deployment type