Remove default configs and unused codes.