Modernized initializers to use `instancetype` instead of `id`.