Relocating push notifications code.