Simplifying the contract/extract method for commonNames