Yeah, there's a bit of code duplication. I thought that refactoring for the reuse might not be worth it when each function is 2 lines long.