Switch .before and .after to .beforeRead + .beforeWrite and .afterRead + .afterWrite.
Trap legacy transform functions