Extract these three utility methods to another class? They don't seem to contain any SwiftResource-specific code.