Simplify inner class usage.