Refactoring to code

Single line variable assignment