add some vim foldmarkers
refactoring (duplicate actions by inline functions)