Simplify build group and light commands
Use group object instead of index
Refactor light commands
Command constants