Refactor the getCSS() by split it into 2 part: search and get override.