Reduce var declaration repetition