Replace if on ?: operator, change constructor name, replace constants on local variables