chore: refactor config variables replacement