Unrelated to the change, but this function should be `static`.