It's OK to extract this to a val but previously you had a function that:

 * was unnecessary as the returned value was always the same and immutable
 * took arguments that were unused