Expose state.prepareValue