Refactor Tutum backend to use beam