Maybe I'm misunderstanding: wouldn't it be more straightforward to only provide a basis for those components where you want to project out the nullspace and index those?