Refactor common parts into common.php. Refactor BibliographyOnSRU.php to work like ProfileOnSRU.php but for the bibliography database. Start of refactoring for SampleTextOnSRU.php