Move commands method from global to inside Specinfra

Fix for #160