Refactor preprocess to use quad in interfaces.