When time is available, it may be worth refactoring long expressions like this to make them more readable. If elements of the expressions are stored in string variables, the expressions can be built from those variables. The variables can be named to describe what they represent, set once, and reused.
Originally posted by @nrferguson in #7 (comment)