Refactor redundant processing.