Transform: mark generic and non-generic parts