I've moved it to function.rs which is where its used. But that doesn't really satisfy the principle of least surprise.