No need for phoenix here, a lambda is much clearer.