Extract field accessor methods into a separate template