Cleaned up subscription url building code.