Reuse code in more places, defer variable instantiation until really needed