Formatting: Add support for @protocol.

Pull pieces of the @interface code into reusable methods.