Extract reservation creation in a method

Easier to read and it was useful for me in some CLI scripts.