Added factory method for SynonymRepository