[TASK] Use API for getting configuration file
[TASK] Remove legacy code