Slight difference between the two but definitely refactoring potential. Will take a look.