Remove duplicate | in Haddock comments
Minor refactoring