relay: rename injected class and abstract away optional bug logging