refactor chef integration to plugin