[NXCM-5214] Use constructor injection

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>