Migrate objectMapper to variable instance