Revert "[refactor] one method to fetch corpus and list in CodeSection"

This reverts commit b731bf1b.
parent b731bf1b
Pipeline #7514 passed with stages
in 24 minutes and 3 seconds