remove_duplicate_results! should be protected
rdoc for some of the methods in JoinDependency
converge three lines into one