moved common parts of methods in trips controller into private method