Replace field injection with method injection

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