Trim dependencies.