Pebble code consolidation