Refactor value transformers into a class hierarchy to enable simple implementation for third-party extensions via subclassing.