Remove dependency of core of kafka module