This is what the docs recommend, but I don't like that pattern.