Reading context files. Refactor