Model: getter synthesizer refactored to template