Modified doRefactoring so that occurences to be replaced can be specified programmatically
Added ifThenToElvis and elvisToIfThen intentions