Trim dependencies