Extracted method not returning scalars that haven't been changed or declared inside the method