Stop passing ctx directly.