Classification of subsystems, local symmetry generators and intrinsic definition of local observables