moneppo's assignment

Having a descriptive comment for a section of code like this is usually a sign to move it into a helpfully-named function :wink: