Refactor default variable assignment.