Extract method for accesing spec params
Create function for a git-like changes between files
Split permission comparison into methods