[fem] more fem solver refactor