Refactor: Extract method.
I will forget what on earth this does