Move code to separate grunt plugin