nit: `return resource is project ? 40 : 20;`