The code was unreachable before so has been refactored