1. Remove unrelated codes.