core: Uniformize calling of apply.