Added an if-def around method calls that were specific to files from a particular subspec.
Added an if-def around method calls that were specific to files from a
particular subspec.

hectr/ErrorKit,hectr/ErrorKit