Replace id with instancetype. Add sharedManager for APIKey.