TASK: Remove local variable

* As we can use returns instead of local variable.
* This will make it easier to see the return value of the method.
7 jobs for feature/refactor-code in 2 minutes and 47 seconds (queued for 2 seconds)