Refactor stylus import resolver