Remove unnecessary sources