Extract callbacks inner class