You can avoid this duplication by moving this to line 66 and removing the instance at line 71