Why not just make obs an implicit parameter?