Move translation searching code into separate method.