Removing unnecessary source definitions