Subcontext fixes and formatting
Moved is_parser trait to its own file