Refactor Pebble to singleton and cleaner interfaces