Refactroing lxc-setup command

To reuse existing functions