LPS-44472 SF: use method calls directly, instead of using a variable