Extracts node grouper to improve it later on