Refactored out ugly expressions.