Split files, remove useless functions.