Make grant checking functions staticmethods