Refactors unnecessary conditional statement.