Refactor nil for bin-tree