Break metadata editing out into easy to override function