Currently, the evaluation repeats several functions using different constants. Using a single function and a parameter, for instance, would produce cleaner, easier to maintain code.