CHANGE: Refactor by sonar

Signed-off-by: arturkandurengagepoint <artur.kandur@engagepoint.com>