Probably, yes. I think in the end we'll either have this on the source, or do it like you suggested by having a method on the parser that gets the source or layer as argument.