Backend: Resolve variables duplication in Ci::Contextable and Ci::Config

from: !72968 (comment 719955412)

Tech debt we should address around this code:

  • duplication of variables precedence with Ci::Contextable

We use the same order in both places, we need to resolve this duplication.

Note: Check not to conflict with #231300 (closed).

Edited by Furkan Ayhan