Refactor how contract assignment to servers works out.