Refactor literal to use newly added leaf? method.