Deduplicate POST value assignment for add/edit operations in post.php with a 'model' concept. This should also help prevent things breaking when one of the functions are updated but the other is missed.