Refactor logic to create synthetic pairs to be reused

So it can be used without necessarly inserting data into the database