Created CompilerPlugin to reduce code duplication