As you need the value only once, you can directly use the call where it's needed.
Furthermore, the white spaces (tabs) in front seem to be different for the lines below.
Please also group lines together that belong together.