This does not work due to cyclic dependencies. I wrapped it in a function to resolve that. I'll add a comment.