Update project preferences
Catch flush event exceptions.
Cast part object.
Refactor file.
Move editor field to parent class.
Remove unnecessary casts.
Don't version preferences configurations.