Refactor conditionals in AlgorithmCore::init

This saves upwards of 3 lines of code!