Make refactor API-compatible with old mocktail and deprecated old method.