Move typedef outside of @protocol block