Migrates edit post and edit comment functions by binding to _context.