Feature/formatter as a service

Moving the logic injecting the dependency to the formatter service definition