Remove empty deps array from initialDeps
Extract route param logic into a function
Extract methodMatches logic